﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Cadastro_Conteudo.ascx.cs" Inherits="Site_IEQ.Controls.Cadastro_Conteudo" %>
<%@ Register Assembly="FreeTextBox, Version=3.2.4.41247, Culture=neutral, PublicKeyToken=5962a4e684a48b87"
    Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<%@ Register assembly="AjaxControlToolkit, Version=4.1.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" namespace="AjaxControlToolkit" tagprefix="Ajax" %>

<script type="text/javascript">
        function mascara_data(campo) { if (campo.value.length == 2) { campo.value += '/'; } if (campo.value.length == 5) { campo.value += '/'; } }
        function mascara_hora(campo) { if (campo.value.length == 2) { campo.value += ':'; } }

        function valida_caracter_data(campo) { var stringvalida = "0123456789/_"; var flagerro = 1; for (i = 0; i < campo.value.length; i++) { for (j = 0; j < stringvalida.length; j++) { if (stringvalida.charAt(j) == campo.value.charAt(i).toUpperCase()) { flagerro = 0; break; } else { flagerro = 1; } } if (flagerro == 1) { charinvalido = campo.value.charAt(i); campo.value = campo.value.substring(0, campo.value.length - 1); var msg = "Esse campo não pode conter o caracter '" + charinvalido + "'"; alert(msg); campo.select(); campo.focus(); } } }
        function valida_caracter_hora(campo) { var stringvalida = "0123456789:"; var flagerro = 1; for (i = 0; i < campo.value.length; i++) { for (j = 0; j < stringvalida.length; j++) { if (stringvalida.charAt(j) == campo.value.charAt(i).toUpperCase()) { flagerro = 0; break; } else { flagerro = 1; } } if (flagerro == 1) { charinvalido = campo.value.charAt(i); campo.value = campo.value.substring(0, campo.value.length - 1); var msg = "Esse campo não pode conter o caracter '" + charinvalido + "'"; alert(msg); campo.select(); campo.focus(); } } }
</script>


<br />
    <strong style="font-size: large">Cadastro de Conteúdo:</strong>
    Preencher o cadastro de conteúdo inicial para a página de apresentação do seu Grupo 
    ou Departamento.<br />
    <hr />
    <br />
    <span style="font-size: medium"><strong>Orientações:</strong></span><strong><br 
        style="font-size: medium" />
    </strong>
    - Os formatos de imagens suportadas para o cadastro são: jpg, gif, png ou bmp.<br />
    - A foto de apresentação deve estar no formato paisagem (horizontal).<br />
    - Caso não tenha alguma informação solicitada, deixe o campo em branco, caso 
    seja um campo de preenchimento
    <br />
    obrigatório, será exibida uma mensagem na parte superior do cadastro.<br />
    - Qualquer dúvida, ou problema com cadastro entre em contato: <strong>
    comunicacao@ieqcontagem.com.br</strong><br />
    <br />
    
    <table class="table" style="width:80%;">
         <tr><td colspan="2" style="text-align: right"><hr /></td></tr>
    <tr>
    <td align="center" colspan="2">
    <asp:Label ID="lblValidation" runat="server" ForeColor="Red" Visible="False"></asp:Label>
    <br />
    </td>
    </tr>
        <tr>
            <td style="width: 225px; text-align: right">
                <strong style="font-size: large; text-align: center">Grupo/Departamento:</strong>
    </td>
            <td>
                <asp:Label ID="lblGrupoDepto" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                <asp:DropDownList ID="ddlGrupoDepto" runat="server" Width="219px" 
                    onselectedindexchanged="ddlGrupoDepto_SelectedIndexChanged" 
                    AutoPostBack="True" Visible="False">
                </asp:DropDownList>
            </td>
         </tr>
         <tr><td colspan="2" style="text-align: right"><hr /></td></tr>
        <tr>
        <td style="width: 225px; text-align: right;">Presidente:</td>
        <td> <asp:TextBox ID="tbPresidente" runat="server" Width="300px"></asp:TextBox> </td>
        </tr>
        <tr><td colspan="2" style="text-align: right"><hr /></td></tr>
        <tr>
        <td style="width: 225px; text-align: right;">Assessor(a) de Comunicação:</td>
        <td> <asp:TextBox ID="tbAssessor" runat="server" Width="300px"></asp:TextBox> &nbsp; </td>
        </tr>
        <tr>
        <td style="width: 225px; text-align: right;">Telefone:</td>
        <td> 
                    <asp:TextBox ID="tbAssTelefone" runat="server" Width="180px"></asp:TextBox>
                    <Ajax:MaskedEditExtender runat="server" ID="tbAssTelefone_MaskedEditExtender"
                    Mask="(99)9999-9999" TargetControlID="tbAssTelefone" CultureAMPMPlaceholder="" 
                        CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
                        CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                        CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True">
                    </Ajax:MaskedEditExtender>
                </td>
                <tr>
                <td style="width: 225px; text-align: right;">Email: </td>
            <td>
                <asp:TextBox ID="tbAssEmail" runat="server" Width="200px"></asp:TextBox> 
            </td>
            </tr>
        </tr>
        <tr><td colspan="2" style="text-align: right"><hr /></td></tr>
        <tr>
        <td style="width: 225px; text-align: right;">Data Fundação:</td>
        <td> 
                    <asp:TextBox ID="tbDataFundacao" runat="server" Width="150px" 
                        onKeyUp="mascara_data(this)" onKeyPress="valida_caracter_data(this)" 
                        MaxLength="10"></asp:TextBox>
                    <!--<Ajax:MaskedEditExtender runat="server" 
                ID="tbDataFundacao_MaskedEditExtender" MaskType="Date" 
                    Mask="99/99/9999" TargetControlID="tbDataFundacao" 
                UserDateFormat="DayMonthYear">
                    </Ajax:MaskedEditExtender>-->
                
            </td>
        </tr>
        <tr>
            <td style="width: 225px; text-align: right;">
                Dia reunião:</td>
            <td>
    <asp:DropDownList ID="ddlDiaReuniao" runat="server" Width="219px">
    </asp:DropDownList>

            </td>
        </tr>
        <tr>
            <td style="width: 225px; text-align: right;">
                Horário:</td>
            <td>
                
                    <asp:TextBox ID="tbHoraInicio" runat="server" Width="80px" 
                        onKeyUp="mascara_hora(this)" onKeyPress="valida_caracter_hora(this)" 
                        MaxLength="5"></asp:TextBox>                
                    &nbsp; às&nbsp;
                    <asp:TextBox ID="tbHoraFinal" runat="server" Width="80px" 
                        onKeyUp="mascara_hora(this)" onKeyPress="valida_caracter_hora(this)" 
                        MaxLength="5"></asp:TextBox>
                    
                
            </td>
        </tr>
        <tr><td colspan="2" style="text-align: right"><hr /></td></tr>
        <tr>
            <td style="width: 225px; height: 264px; text-align: right;"> Foto apresentação: </td>
            <td style="height: 264px">
            <div class="img_grupo_depto">
                <asp:UpdatePanel ID="ImgUpdatePanel" runat="server"  UpdateMode="Conditional">
                <ContentTemplate>
                        <asp:Image ID="imgFoto" runat="server" Height="336px" Width="448px" 
                        BorderColor="Black" BorderStyle="Solid" />
                </ContentTemplate>
                </asp:UpdatePanel>      
            </div>
            
                    <asp:FileUpload ID="FileUploadFoto" runat="server" Height="25px" 
                        Width="450px" Font-Size="Small" ForeColor="Black" />                                      
                <br />
                <asp:Label ID="lblMsgImage" runat="server" Font-Bold="True" Font-Size="Small" 
                    Text="A imagem será atualizada após clicar no botão &quot;Salvar&quot;." 
                    Visible="False" Width="400px"></asp:Label>
<br />                
            </td>
        </tr>
        <tr><td colspan="2" style="text-align: right"><hr /></td></tr>
        <tr>
            <td colspan="2">
                <br />
                <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="Salvar" 
                    Width="90px"/>
            </td>
        </tr>
    </table>
    <br />
    <hr />
    <br />
    Conteúdo Resumido:
    <br /><br />
    <FTB:FreeTextBox ID="TextResumido" runat="server" Width="800px" Language="" 
            AllowHtmlMode="False" AssemblyResourceHandlerPath="" AutoConfigure="" 
            AutoGenerateToolbarsFromString="True" AutoHideToolbar="True" 
            AutoParseStyles="True" BackColor="158, 190, 245" BaseUrl="" 
            BreakMode="Paragraph" ButtonDownImage="False" ButtonFileExtention="gif" 
            ButtonFolder="Images" ButtonHeight="20" ButtonImagesLocation="InternalResource" 
            ButtonOverImage="False" ButtonPath="" ButtonSet="Office2003" ButtonWidth="21" 
            ClientSideTextChanged="" ConvertHtmlSymbolsToHtmlCodes="False" 
            DesignModeBodyTagCssClass="" DesignModeCss="" DisableIEBackButton="False" 
            DownLevelCols="50" DownLevelMessage="" DownLevelMode="TextArea" 
            DownLevelRows="10" EditorBorderColorDark="Gray" 
            EditorBorderColorLight="Gray" EnableHtmlMode="True" EnableSsl="False" 
            EnableToolbars="True" Focus="False" FormatHtmlTagsToXhtml="True" 
            GutterBackColor="129, 169, 226" GutterBorderColorDark="Gray" 
            GutterBorderColorLight="White" Height="350px" HelperFilesParameters="" 
            HelperFilesPath="" HtmlModeCss="" HtmlModeDefaultsToMonoSpaceFont="True" 
            ImageGalleryPath="~/images/" 
            ImageGalleryUrl="ftb.imagegallery.aspx?rif={0}&amp;cif={0}" 
            InstallationErrorMessage="InlineMessage" JavaScriptLocation="InternalResource" 
            PasteMode="Default" ReadOnly="False" RemoveScriptNameFromBookmarks="True" 
            RemoveServerNameFromUrls="True" RenderMode="NotSet" ScriptMode="External" 
            ShowTagPath="False" SslUrl="/." StartMode="DesignMode" 
            StripAllScripting="False" SupportFolder="/aspnet_client/FreeTextBox/" 
            TabIndex="-1" TabMode="InsertSpaces" Text="" TextDirection="LeftToRight" 
            ToolbarBackColor="Transparent" ToolbarBackgroundImage="True" 
            ToolbarImagesLocation="InternalResource" 
            ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage,InsertRule|Cut,Copy,Paste;Undo,Redo,Print" 
            ToolbarStyleConfiguration="Office2003" UpdateToolbar="True" 
            UseToolbarBackGroundImage="True">
    </FTB:FreeTextBox>

    <br />
    Conteúdo Completo:
    <br /><br />
    <FTB:FreeTextBox ID="TextCompleto" runat="server" ButtonPath="" 
        ButtonSet="Office2003" Language="" Width="800px" AllowHtmlMode="False" 
            AssemblyResourceHandlerPath="" AutoConfigure="" 
            AutoGenerateToolbarsFromString="True" AutoHideToolbar="True" 
            AutoParseStyles="True" BackColor="158, 190, 245" BaseUrl="" 
            BreakMode="Paragraph" ButtonDownImage="False" ButtonFileExtention="gif" 
            ButtonFolder="Images" ButtonHeight="20" ButtonImagesLocation="InternalResource" 
            ButtonOverImage="False" ButtonWidth="21" ClientSideTextChanged="" 
            ConvertHtmlSymbolsToHtmlCodes="False" DesignModeBodyTagCssClass="" 
            DesignModeCss="" DisableIEBackButton="False" DownLevelCols="50" 
            DownLevelMessage="" DownLevelMode="TextArea" DownLevelRows="10" 
            EditorBorderColorDark="Gray" EditorBorderColorLight="Gray" 
            EnableHtmlMode="True" EnableSsl="False" EnableToolbars="True" Focus="False" 
            FormatHtmlTagsToXhtml="True" GutterBackColor="129, 169, 226" 
            GutterBorderColorDark="Gray" GutterBorderColorLight="White" 
            Height="350px" HelperFilesParameters="" HelperFilesPath="" HtmlModeCss="" 
            HtmlModeDefaultsToMonoSpaceFont="True" ImageGalleryPath="~/images/" 
            ImageGalleryUrl="ftb.imagegallery.aspx?rif={0}&amp;cif={0}" 
            InstallationErrorMessage="InlineMessage" JavaScriptLocation="InternalResource" 
            PasteMode="Default" ReadOnly="False" RemoveScriptNameFromBookmarks="True" 
            RemoveServerNameFromUrls="True" RenderMode="NotSet" ScriptMode="External" 
            ShowTagPath="False" SslUrl="/." StartMode="DesignMode" 
            StripAllScripting="False" SupportFolder="/aspnet_client/FreeTextBox/" 
            TabIndex="-1" TabMode="InsertSpaces" Text="" TextDirection="LeftToRight" 
            ToolbarBackColor="Transparent" ToolbarBackgroundImage="True" 
            ToolbarImagesLocation="InternalResource" 
            ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage,InsertRule|Cut,Copy,Paste;Undo,Redo,Print" 
            ToolbarStyleConfiguration="Office2003" UpdateToolbar="True" 
            UseToolbarBackGroundImage="True">
    </FTB:FreeTextBox>
<br />
<asp:Button ID="btnSave2" runat="server" onclick="btnSave_Click" Text="Salvar"  
            Width="90px"/>
